﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PageTemplate.Master" AutoEventWireup="true" CodeBehind="AddRetreat.aspx.cs" Inherits="RMS.Pages.Admin.AddRetreat" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContent" runat="server">
    <!-- AddRetreat web form allows admin users to add a Retreat to the system. -->
         
    <div id="addRetreatForm" runat="server">
        <h1>Add Retreats</h1>
        <hr />

        <div id="inputSuccess" runat="server" > 
            <br />
            <span class="greentext"><i>Retreat addition was successful.</i></span>
            <br />
        </div>
                          
        <!-- Validation Summary -->
        <div id="errors"  data-valmsg-summary="true">
                
                <ul><li style="display:none"></li></ul>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="The following errors occurred: " />
        </div>

         <!-- Add Retreat ListView --> 
         <asp:ListView ID="ListView2" ItemPlaceholderID="PlaceHolder1" ItemType="RMS.Models.Retreat" SelectMethod="GetRetreats"
            DataKeyNames="Ret_ID" 
            InsertMethod="InsertRetreat"
            InsertItemPosition="LastItem" EnableViewState="false" runat="server">

            <LayoutTemplate>
                <div id="checkoutForm" class="checkout">                
                    <table class="categoryTable" runat="server" id="PlaceHolder1">              
                    </table>
                 </div>                              
            </LayoutTemplate>
        
             <ItemTemplate></ItemTemplate>
            
             <InsertItemTemplate>
                <tr>
                    <div>
                        <label class="checkout" for="Ret_Title">Title:</label>
                        <input name="Ret_Title" data-val="true" data-val-required= "Please enter a title." /> 
                        <input type="hidden" name="Ret_ID" value="0" />
                    </div>
                </tr>
                  <tr>
                    <div>
                        <label class="checkout" for="Ret_Presenters">Presenters:</label>
                        <input class="lettersOnly" name="Ret_Presenters"data-val="true" data-val-required= "Please enter retreat presenter(s)." />
                    </div>
                </tr> 
                <tr>
                    <div>
                        <label class="checkout" for="Ret_About">About:</label>
                        <!--<input name="Ret_About" data-val="true" data-val-required= "Please enter retreat about/theme/description." />-->
                        <textarea rows="4" cols="50" name="Ret_About" data-val="true" data-val-required= "Please enter retreat about/theme/description."></textarea>
                    </div>
                </tr> 
               <tr>
                    <div>
                        <label class="checkout" for="Ret_Cost">Cost:</label>
                        <input class="numbersOnly" name="Ret_Cost" data-val="true" data-val-required= "Please enter a cost." />
                    </div>
                </tr>
                 <tr>
                    <div>
                        <label class="checkout numbersOnly" style="width:400px;" for="Ret_Dates">Date: (use | symbol to separate dates)</label>
                        <!--<input name="Ret_Dates" data-val="true" data-val-required= "Please enter a date." />-->
                        <textarea rows="1" cols="50" name="Ret_Dates" data-val="true" data-val-required= "Please enter a date."></textarea>
                    </div>  
                   
                </tr>
                <tr>
                    <div>
                        <label class="checkout" for="Ret_Checkin">Time:</label>
                        <input name="Ret_Checkin" data-val="true" data-val-required= "Please enter a time."/>
                    </div>
                </tr>
                <tr>
                    <div>
                        <label class="checkout" for="Ret_Length">Length:</label>
                        <input name="Ret_Length" data-val="true" data-val-required= "Please enter a retreat length."/>
                    </div>
                </tr>  
                 <tr>
                    <div>
                        <label class="checkout" for="Ret_Main_Category">Main Category:</label>
                        <!--<input name="Ret_Main_Category"data-val="true" data-val-required= "Please enter a main category." />-->
                        <select class="cat_type" name="Ret_Main_Category" >
                            <option value="Day and Evening Programs">Day and Evening Programs</option>
                            <option value="Directed Retreats">Directed Retreats</option>
                            <option value="Healing and Transformation">Healing and Transformation</option>
                            <option value="Preached Retreats">Preached Retreats</option>
                            <option value="Religious Life">Religious Life</option>
                            <option value="Special Themes">Special Themes</option>
                        </select>
                        <br />
                        <br />
                    </div>
                </tr>
                 <tr>
                    <div>
                        <label class="checkout" for="Ret_Category_Two">Category #2:</label>
                        <!--<input name="Ret_Category_Two"/>-->
                        <select class="cat_type" name="Ret_Category_Two" >
                            <option value=""></option>
                            <option value="Day and Evening Programs">Day and Evening Programs</option>
                            <option value="Directed Retreats">Directed Retreats</option>
                            <option value="Healing and Transformation">Healing and Transformation</option>
                            <option value="Preached Retreats">Preached Retreats</option>
                            <option value="Religious Life">Religious Life</option>
                            <option value="Special Themes">Special Themes</option>
                        </select>
                        <br />
                        <br />
                    </div>
                </tr>
                 <tr>
                    <div>
                        <label class="checkout" for="Ret_Category_Three">Category #3:</label>
                        <!-- <input name="Ret_Category_Three"/> -->
                        <select class="cat_type" name="Ret_Category_Three" >
                            <option value=""></option>
                            <option value="Day and Evening Programs">Day and Evening Programs</option>
                            <option value="Directed Retreats">Directed Retreats</option>
                            <option value="Healing and Transformation">Healing and Transformation</option>
                            <option value="Preached Retreats">Preached Retreats</option>
                            <option value="Religious Life">Religious Life</option>
                            <option value="Special Themes">Special Themes</option>
                        </select>
                        <br />
                        <br />
                    </div>
                </tr> 
                 <tr>
                    <div>
                        <label class="checkout" for="Ret_Category_Four">Category #4:</label>
                        <!--<input name="Ret_Category_Four"/> -->
                        <select class="cat_type" name="Ret_Category_Four" >
                            <option value=""></option>
                            <option value="Day and Evening Programs">Day and Evening Programs</option>
                            <option value="Directed Retreats">Directed Retreats</option>
                            <option value="Healing and Transformation">Healing and Transformation</option>
                            <option value="Preached Retreats">Preached Retreats</option>
                            <option value="Religious Life">Religious Life</option>
                            <option value="Special Themes">Special Themes</option>
                        </select>
                        <br />
                        <br />
                    </div>
                </tr>                  
                <tr>
                    <div>
                        <p><br /></p>
                        <asp:Button CssClass="myButton" ID="Button5" CommandName="Insert" Text="Add" runat="server"/>
                    </div> 
                </tr>
            </InsertItemTemplate>
        
        </asp:ListView>
     </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="SidebarContent" runat="server">
    <span><a href="/pages/UserAccount.aspx">View Admin Account</a></span>
    <span><a href="/admin/retreats">Edit, Remove, or View Retreats</a></span>
    <span><a class="selected" href="/admin/addretreat">Add Retreats</a></span>
    <span><a href="/admin/reports">Generate Reports</a></span>
    <span><a href="/pages/admin/Users.aspx">Edit, Remove, or View Users</a></span>
    <span><a href="/pages/CreateAccount.aspx">Add Users</a></span>
   
</asp:Content>
